Fixed graph not being removed from context graph list when unattached