Fixed serial port lag issue