Minor corrections in flag parsing