fix multiple resources in json data with same resource-names