Fix a bug with principal not adding more flags after