Template load error: Unexpected tag name "endfor"