fixed first bugs in the chat message parsing process