Adding a fix to support IE 8 and IE 9 quirks.