Fixed bug when entering values lower than the minimum for sliders

I had overlooked this in my previous pull request, sorry.