fix issue with trying to load empty set of resources