Problematic with Mouse 4/5

There is a strange interaction with the Mouse 4 and 5 in the game. Previously, this buttons function was to switch subgroups (you can also do it with TAB), and you still can do this but with some strange limitations. If your cursor is in the hero portrait (top left of the screen), the lazy worker portrait, the map icons or the hability/action UI (down-right side of the screen), the mouse 4 and 5 not work as it should, but respond as an extrange pseudo click for each one of this elements of the UI. This, for me, is annoying because my entire life i switched subgroups with the mouse 4 and 5, and now i need to put my cursor anywhere except this places of the UI in order to switch subgroups correctly. The configuration of the hotkeys can not help me with this problem due to an inexistent key conflict between the mouse 4/5 and anything else. I hope this problem could be solved.