Fix bug: incorrect fail count length leading to crash.
Merge branch 'develop'