adjust position to compare with total
adjust position to compare with total

This fixes an additional request when iteration at the end of a result.

rookdev/pyes,Fiedzia/pyes,jayzeng/pyes,aparo/pyes,aparo/pyes,aparo/pyes,jayzeng/pyes,haiwen/pyes,HackLinux/pyes,haiwen/pyes,rookdev/pyes,haiwen/pyes,Fiedzia/pyes,mavarick/pyes,HackLinux/pyes,jayzeng/pyes,Fiedzia/pyes,mavarick/pyes,HackLinux/pyes,mavarick/pyes