fixed serial communication data loss