fix ie8 bug  for resource 404
update for loop