Fixed a graph layout bug