fixed array_paginate