IE8 Stack overflow at 225 and IE7 Out of memory at 314