Fixed some comparison issues with BVH. Better, but still not perfect.