Fix IE8, IE9 compatibility