Fix "for range" syntax error