serial read fix