Elections were held, and the UANC won. Josiah Gumede was the first President, Muzorewa became prime minister and the country's name was changed to Zimbabwe Rhodesia. However, the war that Smith hoped to stem as a result of the settlement continued unabated. Mugabe and Nkomo rejected the settlement, ending any realistic chance for Muzorewa to gain any international legitimacy. While ZANU and ZAPU could have taken part in the elections if they laid down their arms, they refused to do so. The internal settlement was also condemned by the United Nations Security Council Resolution 423 of 1978, which declared any settlement drafted under the "illegal racist minority regime" to be "illegal and unacceptable."