Fix chat crash.