fixed ie8 issues by adding a second loop for super-slow browser