fix duplicate id