history fix duplicate products