Fixed the incompatibility issues for IE8 (not for IE7 though)