Fixed incompatibility with IE7/8