fixed generation of empty data sets to make sure <1.8.7 will not
blow up