Fix console error in IE