Bug fixes when parsing required arguments.