using --riggid it is possible to get a case where minval is bigger than maxval ....