fix retrieving the serialnum