never even touch the switch when the engine is running... messes up the computer I guess. I found out the bad way. W stands for Winter mode, while S is for Summer or Sports mode. W bypasses the first gear hence giving you better traction on snow.
Hope this helps little with your problem. Have no other suggestions