Fixed samples menus' behavior.