diff --git a/lib/php/UNL/LDAP/Entry/Attribute.php b/lib/php/UNL/LDAP/Entry/Attribute.php
index f3bd288a972065787f3cf56b4c2c31ea700348ec..8922bf821e9d25d13f76f6abbccfbc3915699d23 100644
--- a/lib/php/UNL/LDAP/Entry/Attribute.php
+++ b/lib/php/UNL/LDAP/Entry/Attribute.php
@@ -50,11 +50,9 @@ class UNL_LDAP_Entry_Attribute extends ArrayIterator
         return $this->count;
     }
 
-    public function __wakeup()
+    public function unserialize($data)
     {
-        if (isset($this->storage)) {
-            parent::__construct($this->storage);
-        }
+        parent::unserialize($data);
         $this->rewind();
     }