Fix some bugs with the date slider.