Fixed getActiveDatasets returning wrong objects.