Fix order of flags.