fix for IE < 9 or in quirks mode