fix the syntax of flags.