AMENDMENT NO. 9 AND WAIVER TO THE CREDIT AGREEMENT