Fixed the "Overwrite createdbyid" when editing

Fixed the "Overwrite createdbyid" when editing issue.