Fixed triple count error that resulted in removed entries.
Fixed error in triplicate checking.
Fixed error in triplicate checking.
Fixed error in triplicate checking.