Removed subgraphs and fixed problem with unlinked refs