fixed bugs IE7 and IE8