try to fix resource cloning warnings