* fixed bugs in failCount detection
* fixed bugs in failCount detection
* fixed bugs in failCount detection