In[4]:= Sum[(x - Sum[x, {x, 1, 9}]/9), {x, 1, 9}] Out[4]= 0
sometimes nonprinting characters can mess up an input. that may be your problem