Fix swap data

Add unique identifier for each dataset.
why don't do this in ```set_data``` ?