fixed bug finishDate<startDate