Fix bug: incorrect fail count length leading to crash.