Bug fix: paginate() pos element should be zero if out of range