SIXTH AMENDMENT TO CREDIT AGREEMENT AND SECOND AMENDMENT TO GUARANTY AND SECURITY AGREEMENT