If I write $\hat{\bar{M}}^{a}$ by using the code
\hat{\bar{M}}^{a}
then I find that the superscript a is too high up. I would like for that a to be at the same height as M (but including the bar and hat accents on top).
How does one do this?

