SIXTH AMENDMENT TO CREDIT AGREEMENT AND SECURITY AGREEMENT AND CONSENT OF GUARANTORS