end date fix