fixed PhpSerial.php