fix a bug in listAction