fix edit graph (again)