Fixed code so that the surface and the sphere could be rendered together