Do not assign it in the functions that actually load the surface. Make those just return the surface.