a successor in interest) provides notice to the Secretary and the housing credit agency that the building has been acquired by foreclosure (or instrument in lieu of foreclosure) and that the taxpayer intends the termination of such period, unless, before such date, the Secretary or the housing credit agency determines that such acquisition is part of an arrangement with the taxpayer a purpose of which is to terminate such period. (ii) Eviction, etc., of existing middle-income tenants not permitted The termination of an extended use period under clause (i) shall not be construed to permit before the close of the 3-year period following such termination— (I) the eviction or the termination of tenancy (other than for good cause) of an existing tenant of any middle-income unit, or (II) any increase in the gross rent with respect to such unit not otherwise permitted under this section. (F) Effect of noncompliance If, during a taxable year, there is a determination that an extended middle-income housing agreement was not in effect as of the beginning of such year, such determination shall not apply to any period before such year and subparagraph (A) shall be applied without regard to such determination if the failure is corrected within 1 year from the date of the determination. (G) Projects which consist of more than 1 building The application of this paragraph to projects which consist of more than 1 building shall be made under regulations prescribed by the Secretary. (6) Special rules (A) Building must be located within jurisdiction of credit agency A housing credit agency may allocate its aggregate housing credit dollar amount only to buildings located in the jurisdiction of the governmental unit of which such agency is a part. (B) Agency allocations in excess of limit If the aggregate housing credit dollar amounts allocated by a housing credit agency for any calendar year exceed the portion of the State housing credit ceiling allocated to such agency for such calendar year, the housing credit dollar amounts so