fix for paging, related issue #34
Merge pull request #42 from patrykbialek/master

fix for paging, related issue #34