Anxiety

Whenever I see my ex boyfriend from two years ago I get anxiety. He was my first love but I've been with my new boyfriend for over a year now and I love him more than anything. I never have the urge to even contact my ex boyfriend I think nothing of him but why do I freak out when I see him? Is it just because he broke my heart once?