Fix log adding errors.