Fixed bug for ie7