Fix ancestry relationship parsing