fix some bugs that occur in pagerank benchmark