fixed of-by-one error on missing cli