fix flag.HelpError and fix bug