Fixed both sending and receiving chat.