Fix sendmessage