Correcting a bug in SimialarityTransform