SIXTH AMENDMENT TO AND WAIVER UNDER CREDIT AGREEMENT