ancestry.lua: fix conflict between codes