minor bugfix for pagination and the query string