was missing a line to reset the end date