foreach tag minor fix