Fix to automaton runapp