\over
is a TeX primitive and its use is discouraged. Use the LaTeX
\frac
instead. The usage of
\over
will often result in unwanted behaviour, especially when the exact workings are not known.