fix the error count