Fixed subsample min bug