small change to corrupt file check

reset counter