Fixing send message error