Fixed a bug in sphere_generator.cc