remove dups when reindexing

this fixes #7