Fixed bug in room assignment.