fix bug in cc_disc script