addressed problems with min/max setting