Bug fixing: error when renaming variable in create_datasets and shared d...

...atasets addition