Corrects "room" being undefined.