I think you should only count the number of successful tests that were run, instead of all possible tests, when computing Bonferroni correction.