bug fix of createRoom method.