Fix flags.