date-reset fix