fixed zero count bug, file-counter mismatch