Strange problem on serial port