Dseries "insert" doesn't carry the new index

My mistake, I did not know it’s a Matlab example data set. I can confirm that the code

clear all
load acetylene.mat
ds_example = dseries(y)
size(ds_example)
ds_nan = dseries(NaN, ds_example.dates, "inserted_Variable")
ds_example1 = insert(ds_example, ds_nan{1}, 1) % we succesfully insert a variable
size(ds_example1) % check what we’ve done
ds_example1{1} % works
ds_example1{end} % doesn’t work (ds_example1{2} and ds_example1{‘Variable_1’} don’t work either)

does not run, presumably due to a problem with the command history. You can keep track of the bug at Fix crash after using insert (#53) · Issues · Dynare / dseries · GitLab