fix empty root dup bug