Fixed issue with minimum and maximum values when setting a current value.