fix failed attempts count