Bugfix undirected graph