fixed compatibility issues with latest IE