serial communication fix