To get after what Frank recommended I copied and pasted each command (the bad and the good) into a text editor and found the following:
Bad one
\!\(\*UnderscriptBox[
OverscriptBox[\(\[Sum]\), \(\[Infinity]\)], \(n = 1\)]\)1/n^s
Good one
\!\(
\*UnderoverscriptBox[\(\[Sum]\), \(n = 1\), \(\[Infinity]\)]
\*FractionBox[\(1\),
SuperscriptBox[\(n\), \(s\)]]\)