fix typo on apply_dates_offset