fix: name collision in loop variable