fix CLI error condition