SIXTH AMENDMENT TO CREDIT AGREEMENT AND WAIVER AGREEMENT