Fixing buggy resource map