onerror fix