Fixing resourceset to support type of resource set