fixed pagerank script