fixed rooms glitch with undefined rooms