SEVENTH AMENDMENT TO CREDIT AGREEMENT AND THIRD AMENDMENT TO THE SECURITY AGREEMENT