corrections on pagination