Bug fix for ie7 & 8