fixed initial transition code generation