Fixed a regression in IE7 and IE8 that was causing an error.