Fix IE8 compatibility issue