Fix a bug in rollback feature. Cardinality associated to each tag