Fix a bug in delete menu.