fixes bug for code generation of flag --cycle=false