fix blank party counting

including pdf/csv fix by kpap