fix the bug in sphere-sphere distance