Minor fix of output for applyAndWait function