fix the metric graph creator