Fix IE8 incompatibility