Ts3.class.php fix