Fix Slider value increasing beyond maximum