Avatar action on transition fails when there is a ";" at the end

E.g. "x = x + 1 ;" fails during simulation but "x = x + 1" succeeds The syntax checker should filter this.