Fix bug: after appending, maximum value of slider should be changed;