fixed serial input error