Fix logic for determining origin in fully phased child