fixed error when no duplicates present
Merge branch 'riverflyTest'