I wish you could recreate the exact sequence of events that causes it - of course, if you could, you probably wouldn't be running into the issue...
When you are changing modes are you going past the non-manual "automatic" zones on the dial, or the C option?

