Serial port is always 1 message behind.

Please post your entire sketch.