Fixed wrong pager, fixes #655

$startnum returned by the pager starts with 1, but it needs to be 0 instead.