fixing the the silly bug in the dynamic pagerank gather function