fixed serial code.

fixed serial code.