Fix remove menu items bug.