Fixing some IE8 bugs