I had the same problem. I've changed Settings => Keyboard => "Input source switching" from "Switch input sources individually for each window" to "Use the same source for all windows".
And it helped me.