fix for the last page
Merge pull request #287 from alexeyostapets/master

paginator fix for the last page