Fixed bug in ie7, ie8