correcting error in sliders