fixed some bugs for ie7 , ie8