I don't think she got "messed up" per se, but rather that it just triggered Takae to come back. There's also the possibility that she understood that someone else took over and she stood down to let them be happy (I doubt this one considering she's like 10)