small paginate bug fixes