sendmessage fix