fix to use DatasetFactory in labeling data class