fixed error with serial monitor