fixed wrong argument in ENDFOREACH() (caused just warnings)