fix failed count