THIRTEENTH AMENDMENT TO LOAN AGREEMENT