fixed the console error on IE