In the logitech profiler go to Settings, and check the box for "persistent profile". This will prevent it from switching automatically