fix bug in replacing N (ONE_YEAR_IN_DATA_UNIT and co)