Fixed serial number updating.