Fixed bug where OID string length was written into a wrong position