I found the error

Reproduce by running vhash_greedy, the distance function is borked.