fixed a slider bug