bugfix datasetCode calculation