fixed error with serial timeout