Fixed pagination being wonky sometimes