Fix to avoid problems with old IE versions.