fix ResourceId