fix leaving the chat