fix errors stats