fix number of pages retrieve