fix IE8 compatibility issues