Connecting Bluetooth breaks the keyboard layout change

Hello everyone. I have two keyboard layouts – English and Russian. When I start my PC, there are no problems changing it – there’s only one widget in the right-down corner. It switches between en/ru, and it’s settings are located at “Regional Settings → Language”.
But when I connect my bluetooth headphones, a new widget appears, that switches between us/ru, it’s settings are located at “Input Devices → Keyboard”, and it messes up everything: sometimes I can’t change the layout with a hotkey, or the two widgets desnchronize and I can’t change the layout. How can I fix this? KDE Plasma version 5.27.11

Found the solution myself – I deleted all layouts in “Input Devices → Keyboard”

Another Solution suggested was going in im-config and then typing activate bare XIM