SECOND AMENDMENT TO CREDIT AGREEMENT