fixed a sintax error in sendMessage