These flags are supposed to be mutually exclusive. I have identified the location of the bug in the code.