fix result when listing an empty dir