Fixing a wrong conversion with the newly created instances of resources