fix invalid graph method call