fixed bugs with sliders