Fix potential problem in flag.