Fixed the graph order issue