Fix error on double click when replacing main wiki menu items