Fixing problems in revTransform due to ties in data.