fix duplicate history