fixing cmdline Mode