Let A, B be two vectors. Then A=$a^ie_i$ B=$b^ie_i$ Then why is it in order to taking the inner product of the two I must change the summation of one vector:
$a^ie_i$ $\cdot$ $b^je_j$? The summation convention is that if there is a subscript and superscript that are of the same letter then summation is implied.
The convention is: repeated indices are summed over but each index must appear at most twice, so for example the expression
$$ (a^ie_i) \cdot (b^i e_i) $$
does not follow the rule (it has four times the symbol $i$ in it), and therefore you cannot sum over the index $i$ in this convention.
So how do you go about it? The answer is in the fact that the term $b^i e_i$ does follow the rule, so
$$ b^i e_i = b^1 e_1 + b^2 e_2 + \cdots = b^j e_j = b^k e_k = b^\alpha e_\alpha = \cdots $$
you can use whatever symbol you want to label the index, it is void of meaning. With this in mind you can write the first expression as
$$ (a^ie_i) \cdot (b^j e_j) $$
which now follows the rule of the convention