fixed some bugs with reviving or changing rooms and persisting glitch type