Well I'm not an expert, so I could be wrong, but it sounds to me like your subconscious is thinking about your ex an awful lot, and those thoughts are coming out in your dreams.