Tried to fix kd-tree intersection test.