error-counting-fix