Setting correct boolean value for editing menu item.