AMENDMENT NO. 12 TO THE CREDIT AGREEMENT