Removing duplicates in a bundle