Read the actual sid length instead of the string length in the constructor.