fix query by page bug