Fixed bug that led to returning only one dataset via dataset_query in -text mode