Fix chat log generator