My Nindo, My Ninja Way
Obito did not set the kyubii free on that tragic day . It actually was madara. But due to his old age he was much weaker. But just as obito was slipping into insanity after learning that rin passed, he learns that it's not too late.