disable debug print
fix error in det_mod_t()