IE9 fix for issue #7