Fix a graph drawing bug