Fixing paginator index