Fixed IE8 compatibility issue