- The <%end %> should be closed at the same level of the beginning of the <%for....>