fixing some IE8 bugs