Update class.lib.php