fix ResourceDescriptor