fixed error in room model