Fixed pagination error