Any provision of this Mortgage that is prohibited or unenforceable shall be ineffective to the extent of such prohibition or unenforceability without invalidating the remaining provisions hereof. If any portion of the Secured Obligations is for any reason not secured by a valid and enforceable lien upon any part of the Mortgaged Property, then any payments made in respect of the Secured Obligations (whether voluntary or under foreclosure or other enforcement action or procedure or otherwise) shall, for purposes of this Mortgage (except to the extent otherwise required by law) be deemed to be made (i) first, in respect of the portion of the Secured Obligations not secured by the lien of this Mortgage, (ii) second, in respect of the portion of the Secured Obligations secured by the lien of this Mortgage, but which lien is on less than all of the Mortgaged Property, and (iii) last, to the portion of the Secured Obligations secured by the lien of this Mortgage, and which lien is on all of the Mortgaged Property.