having wierd issue with dream generation