fix assigning URI for auto-draft entities