fix failure rate bug