AMENDMENT NO. 2 TO THE AMENDED AND RESTATED CREDIT AGREEMENT