fix logic error when detecting the unioning method.
NOT RELEASED YET