graph error fix