Fix vector output. Now it looks like FSM.