Fix a bug when calculate Network-Efficiency