fix stepper bug with min