fixed some bugs in the chat