Fix for calculation of slider initial value.