Fix slider bug