Possible issue regarding copying a resource, run-time error