Objects with a radius near to or above 1,000,000 are considered gas giants by the game. That's the cause of your "glitch" and unfortunately is not fixable since it is directly hard-coded to do that and there isn't a separate variable for toggling the surface.