class.php fix