fix paginate/footer issue