fixed problem in serial library