fixed the issue with the slider value not updating