fixing a bug that a random room caused