bug in correcting operatorgraph for union and optional removed