Fix crash in rooms.js