fixed bug in new kd-tree, in fof_class for fof_mode=spec