Making sure error messages counter does not go crazy