Fixes on paginate category