Bugfix, avoid updating the same sample multiple times
Merge pull request #39 from alneberg/master

Bugfix, avoid updating the same sample multiple times