reducing the -1 for page id links