I find that in scaling, most of the gravity should come from pale malt, rather than specialty malts.
After using the scaling function, use the Vienna malt to get to the right color, then adjust the corn to get the same gravity you get from corn in the 10 gallon recipe. The last adjustment should be to add pale or pils malt to get to the same OG as the original.