try fix to_pdf thead bug
add stats#index