Fix sending messages to chats.