Fix flavor creation in createsampledata

NC-139