Fixed manageDatasets after refactor