Fix "cloning resource attributes from prior resource" warning