fixed bugs in the chat room