Fixed __sleep() bug