another dirty hack to fix the serial port strange freeze