fix for paginator
Merge pull request #280 from alexeyostapets/master

fix for paginator