some little fix in serial comm