memoize have a correct id for resetting