fix startDate problem