fixes of the flow graph during optimization