fix broken chat handler