You have caused a template loop due to improperly nested sub-templates