Fix a couple of errors in the normal chat handler.