Is it bad that I miss him...

So last night I had a dream that I cheated on my current boyfriend of 2 years with my ex that I was with a little less than 2 years. When I woke up I felt terrible like why did I dream of that when I know I’m madly in love with the man I’m with now. But then when I was replaying the dream in my head I started to miss my ex. Idk why and I know I shouldn’t but I do 😔