fix ordering in graph also