Fix bug for linking datasets

Now able to link datasets instead of copying them into a data library.