fixed duplicated triples in store in function PG.replaceStatements