Fix initial ancestor chain in relation

Fixes #537