Fixing genrate_page_rank