fix error that removes rooms incorrectly