mjdgges: fix bug where qz_criterium was not taken into account if a threshold argument is also passed