fixed serial_id truncation bug