patch bug where endDate overwritten on save for closed projects