fix unique name trap when changing resource type in change recipe