Added  missing endfor tags