diff --git a/include/class_CopyPasteHandler.inc b/include/class_CopyPasteHandler.inc
index fa3132490a347c1e60f19f4e2a34464b8a1d49fc..48b03d8d23e3aa88af11ce4e721cf3bd68394425 100644
--- a/include/class_CopyPasteHandler.inc
+++ b/include/class_CopyPasteHandler.inc
@@ -36,12 +36,12 @@ class CopyPasteHandler {
   /*!
    * \brief This array contains all dns of the currently copyied objects
    */
-  var $queue       = array();
+  var $queue = array();
 
   /*!
    *  \brief The dn of the last edited object
    */
-  var $lastdn      = "";
+  var $lastdn = "";
 
   var $disallowed_objects = array();
   var $objects_to_fix     = array();
@@ -157,7 +157,6 @@ class CopyPasteHandler {
     if ($entry['method'] == "copy") {
       $attrs_wrapper = new stdClass();
       $attrs_wrapper->attrs = $entry['source_data'];
-      echo "<h1>Creating tab object with copied_object as parameter</h1>";
       $entry['object'] = new $tab_c($this->config, $this->config->data['TABS'][$tab_o], "new", $tab_a, $attrs_wrapper);
       $entry['object']->set_acl_base($base);
     } else {
diff --git a/plugins/admin/departments/tabs_department.inc b/plugins/admin/departments/tabs_department.inc
index bd0e1eec1baf4424f5c6fa29e3539585c79ed17e..74b15db8c1bddec074be337329eb86d2370813a8 100644
--- a/plugins/admin/departments/tabs_department.inc
+++ b/plugins/admin/departments/tabs_department.inc
@@ -26,7 +26,7 @@ class deptabs extends tabs
   var $moved      = FALSE;
   var $base_name  = "department";
 
-  function deptabs($config, $data, $dn, $category, $copied_object)
+  function deptabs($config, $data, $dn, $category, $copied_object = NULL)
   {
     parent::tabs($config, $data, $dn, $category, $copied_object);