fix pagerank casting issue