Fix chat logging