fix bug in repeatWith cmd