validate output for paginate_path fix#8