fix for loops in strict mode