Fix triplets search