Prevent console errors on IE