fix entry_dup