Fixed strange bug with resource listing.