Fixed issue: Player continues walking if mode changed during walk