Fixed page-id check.