fixed parsing of the CHAT