Fix for IE7 and IE8.