Bug fix to graph engine and graph acessor function generator