fixed room assignment bug