fix chatcontroller