Correct sendamessage bug