fixed problem with slider.