Fixing some IE8-specific bugs