fix getTo() method not returning the correct values
Merge pull request #1421 from brunogaspar/master

Fix the Paginator getTo() method not returning the correct values