repaired glitches with duplicates and inCart field