Fix page issue in subqueries caused by copy without copying page param