Fix compile issue in graph_stats