Fixed the chat handling and username parsing