The movie has been out for almost a year, you don't have to use spoilers.
I was glad he realized that he and Avery actually weren't meant to be and that he started to see Carrie in a different light. He missed what was right in front of him because he was so obsessed about getting together with Avery.