fix graph callback