Didn't Hagoromo and his brother seal the Juubi inside the moon ? then how did he become the Juubi's jinchuriki ?
And how exactly did Madara summon the Gedo statue ? wasn't the statue inside the moon ? if not, then what did Hagoromo and his brother used the seal for ?