fix window.onerror logger