Fix menu undefined

In add_visible_profile_menu_item, menu is
undefined and should be self.menu.