fixed an endless loop bug in IListing