Fix in create_many for checking for duplicate shares.