fix empty duplicate id