Fix a bug in chat_room