Fix error on slider