fix the query page