Fix for the cache poisoning issue with relationship chain position

Does not fix all of it - the concurrent test is still breaking. But this fixes the majority of the issue