AMENDMENT NO. 12 TO CREDIT AGREEMENT