THIRTEENTH AMENDMENT TO CREDIT AGREEMENT (Refinancing Amendment)