corrected a bug that transformed Generator into GeneratedDataSet when using restrictions