fix the bug in dream controller create function