Fix not saving duplicates from recent history