Fixed the firstResult and maxResults query.