fixed failure count issue