Fix a bug with limit output in core lister