Your mind wants to remember the good times, not so much the bad. Have you noticed when you think of an ex you start thinking about all the fun shit you did? If you remembered the bad stuff it wouldn't be an issue...