Various fixes for bounding sphere checks