Fixed bug where the text for a menu item was being set in the wrong
component.