fix design bug in LSH