Fix a bug in rooms.js