ooh, sorry to hear that. well, i don't think he was mad at you per se, but just still upset about his ex and is misidentifying you as the perpetrator. if you give it enough time he'll get over her, hopefully. but i don't think he's actually mad at you, or if he's even mad at you at all and you're just taking it the wrong way. but if he is still in love with his ex then you need to talk to him and make a decision of whether or not he's worth your time.
i feel like i'm not making any sense, did i help at all?