Fixed quriks in pagination. New API