AMENDMENT TO AND RESTATEMENT OF CREDIT AGREEMENT