Fix graph error handling.