Duplicate search results

Search results show duplicates. Fix might possibly related to https://github.com/wtud/tsap/issues/43.