small fix in listCmd