fixed console error when using sliders