Fixed pagination url bug