Added workaround for sphere generation only generating part of the sphere.