Fix peer flags.