fix sphere-vs-axis-aligned-cube logic