Fixing location referencing in related_graph