Fixing resource copy