Fixed bug with deleting menu items that have children