fix for lint OnError