AMENDMENT NO. 4 TO THE CREDIT AGREEMENT