Fixed chatmessage bug