fix h_dup method problem