Solved flag set order ambiguity