fix for nan in sphereVsAACubeHelper()