SIXTH AMENDMENT TO CREDIT AGREEMENT AND SECOND AMENDMENT TO SECURITY AGREEMENT