Issue #5704: Fix bug about UISlider

Issue #5704: Fix bug about UISlider