I have two theories, both of which sound really dumb 1. the firey in lost memories isn't the same one as the one in fireleaf, but one from a different timeline completely. 2. shadow's soul isn't linked to Flame's in any way and is really just a computer that somehow gained sentience.