fix a bug in page id