Fixed fail counter code