fix flags.