Fixed the serial number bug