fix startdate bug