Fixed pagination issue.