Bug fix with range picker when next date is before previous date.