Fix for the cache poisoning issue with relationship chain position

Fixes both the chain loading position patching and the cache invalidation order