fix IE8 problem from console.log