Fix graph order