CORE: fixed a crash with Deactivate, fixed crashing with Activate with no Automaton entry, fixed Deactivate animation