fix duplicate insert