AMENDED AND RESTATED FOURTH AMENDMENT TO CREDIT AGREEMENT