Fixing state variable offsets in parser and transition system