fixed addFailure call which had params in the wrong order