Fix crash when renaming 2D datasets in dataset editor