Nujoma was re-elected as President of Namibia in December 1994 with 76.3% of the vote. The constitution of Namibia was changed to allow Nujoma to run for a third five-year term in 1999; this was justified on the grounds that he had not been directly elected for his first term, and the change applied only to Nujoma. He won the 1999 election with 76.8% of the vote. The constitution did not allow Nujoma to run in November 2004 for a fourth term, and there was not much enthusiasm even within SWAPO to change it again. Hifikepunye Pohamba, described as Nujoma's "hand-picked successor", was elected as the candidate for the presidential election during the SWAPO congress held on 30 May 2004, defeating two other candidates, Nahas Angula and Hidipo Hamutenya. The latter had been dismissed from his post of Foreign Affairs minister by Nujoma barely two days before the congress. Pohamba was elected with a large majority and was sworn in as second President of Namibia on 21 March 2005.