Fix special xtend character. Add generated code.