paginate works on deploy