I've noticed that the mage armor spell will turn off for no apparent reason. When that happens, I have to activate it twice to get it back on, as if the toggle still thinks it's running (hence a full off/on cycle), while the animation and stat code thinks it isn't.