fixes results pagination.
Merge pull request #19 from birkin/master

fixes results pagination and facets