Fix new smart-cli bug