Fixed chatmessage errors