AMENDMENT NO. 2 TO THE CREDIT AGREEMENT AND LIMITED CONSENT