This bug for me is every time I open chat, any chest, and menu. It switches from what I was on. Driving me crazy! Do you have Inventory tweaks as well? Perhaps those 2 mods aren't liking each other?
Also it doesn't matter what is in my inventory. I can have nothing or lots of things or 1 thing doesn't matter. It switches to the hot bar regardless if its switching to a specific thing or not.