rangePicker bug fix