fix console error on Internet Explorer