make mapper_lsh more robust in hashing