fix onerror loop in IE browser