Fixed an issue related to sending messages.