Affordability Act of 1997, subject to the requirement that any residents assisted under section 8(o)(13) of the Act at the time of such termination of such project-based subsidy contract shall retain all rights accrued under section 8(o)(13)(E) of the Act under the new project-based subsidy contract and section 8(o)(13)(F)(iv) of the Act shall not apply: Provided further , That to carry out the previous proviso, the Secretary may transfer from the heading ‘Tenant-Based Rental Assistance’ to the heading ‘Project-Based Rental Assistance’ an amount equal to the amounts associated with such terminating contract under section 8(o)(13) of the Act: