fix infinite loop in CLI::NewEntry