fix bug: cannot update start date later than end date, vice versa.