Fix transitive index relation lookup