fix graph issue