fix Not enough storage error in IE7/IE8