fixed mage walk state bug.