fix ie8 compatibility issues