diff --git a/contentdm.module b/contentdm.module
index 1bca426..0928f57 100644
--- a/contentdm.module
+++ b/contentdm.module
@@ -533,6 +514,8 @@ function contentdm_item($alias, $pointer, $op = NULL) {
  * To do: add error checking for -2 and false responses from dmGetItemInfo() and exit with an appriate error message
  */
 function contentdm_create_wrapper($alias, $pointer) {
+  global $user;
+  $uid = $user->uid;
   $parent_pointer = contentdm_GetParent($alias, $pointer);
   if ($parent_pointer == '-1') {
     $parent_pointer = '';
@@ -542,7 +525,7 @@ function contentdm_create_wrapper($alias, $pointer) {
   $node = new stdClass();
   $node->type = 'contentdm_wrapper';
   $node->format = 2; // Full HTML.
-  $node->uid = 0;
+  $node->uid = (is_numeric($uid)) ? $uid : 0;
   $node->status = (in_array('status', variable_get('node_options_contentdm_wrapper', 0))) ? 1 : 0;
   $node->promote = (in_array('promote', variable_get('node_options_contentdm_wrapper', 0))) ? 1 : 0;
   $node->sticky = (in_array('sticky', variable_get('node_options_contentdm_wrapper', 0))) ? 1 : 0;
@@ -552,7 +535,6 @@ function contentdm_create_wrapper($alias, $pointer) {
   $node->alias = $alias;
   $node->pointer = $pointer;
   $node->parent = $parent_pointer;
-  $node->parent = $parent_pointer;
   $node = contentdm_map_to_node_attributes($node);
 
   // Save the node
