BugFix: Copy all resource properties in the constructor.