Fixed issue with message sending.