Building menu (reset) problem

Similar as with Villager build menu (reset) problem happens with buildings.

The menu won’t reset to default state if you open the extra menu (default Y hotkey) unless a different type of building (or a unit) is selected, left clicking ground to deselect won’t work neither.

With mongols for example, the extra menu (Y) will be default (once opened) even if the building (new selection of the same type) is not in the range of the ovoo: