Fixed issue with query offset for page.