Fix chat crashes.