I fix the bug of incorrect count of shortest path.