Implementing the instruction above breaks the menu (partuclarly, the «Properties» menu item) for an unknown reason.