fixes consume tag when used with a variable within a for loop