Fix undefined return for missing cmd