Fixed a memory bug in sumalibs with similarity thresholds of 100%

Fixed a memory bug in sumalibs with similarity thresholds of 100%