Fix global i in 'for in's