fix graph errors