diff --git a/docs/docs/ASYNC.md b/docs/docs/ASYNC.md
index 31eb55d4..c4c66d28 100644
--- a/docs/docs/ASYNC.md
+++ b/docs/docs/ASYNC.md
@@ -341,7 +341,7 @@ class MyLoop extends Loop
public function loop()
{
$MadelineProto = $this->API;
- $logger = $MadelineProto->logger;
+ $logger = &$MadelineProto->logger;
$callable = $this->callable;
$result = null;
@@ -442,7 +442,7 @@ class MySuperLoop extends ResumableSignalLoop
public function loop()
{
$MadelineProto = $this->API;
- $logger = $MadelineProto->logger;
+ $logger = &$MadelineProto->logger;
while (true) {
$t = time();
@@ -516,4 +516,4 @@ The return value of the callable can be:
* `GenericLoop::PAUSE` - The loop will pause forever (or until the `resume` method is called on the loop object from outside the loop)
* `GenericLoop::CONTINUE` - Return this if you want to rerun the loop without waiting
-Next section
\ No newline at end of file
+Next section
diff --git a/docs/docs/UPDATES.md b/docs/docs/UPDATES.md
index aca52051..d1896553 100644
--- a/docs/docs/UPDATES.md
+++ b/docs/docs/UPDATES.md
@@ -189,6 +189,8 @@ $this->{'user2.madeline'}->messages->sendMessage(['peer' => '@danogentili', 'mes
If you intend to use your own constructor in the event handler, make sure to call the parent construtor with the only parameter provided to your constructor.
+If you need to use the [__sleep](https://www.php.net/manual/en/language.oop5.magic.php#object.sleep) function, make sure it is called `__magic_sleep`, instead.
+
The update handling loop is started by the `$MadelineProto->loop()` method, and it will automatically restart the script if execution time runs out.
To break out of the loop just call `die();`, or throw an exception from within (make sure to catch it outside, in the `$MadelineProto->loop()` call).