Bugfix: history kept date duplicates.