Weird dreams..?

Has anyone ever dreamt of an ex and then woke up missing them? I love my bf so much but for some reason when I wake up I THINK I miss my ex.. It lasts about a few hours then goes away, it's the crapiest feeling ever.