Fixed some bugs with dreams