THIRD AMENDMENT TO CREDIT AGREEMENT