Fix when cmdline is empty