fix graph error