better pageNum correction