Fixed sendMessage error.