In March 1971, the resentment against Gorton came to a head when a confidence vote in the Liberal caucus resulted in a tie. Declaring that this was a sign he no longer had the confidence of the party, Gorton resigned, and William McMahon was elected his successor. With the Liberals in turmoil, Whitlam and the ALP sought to gain public trust as a credible government-in-waiting. The party's actions, such as its abandonment of the White Australia policy, gained favourable media attention. The Labor leader flew to Papua New Guinea and pledged himself to the independence of what was then under Australian trusteeship. In 1971, Whitlam flew to Beijing and met with Chinese officials, including Zhou Enlai. McMahon attacked Whitlam for the visit and claimed that the Chinese had manipulated him. This attack backfired when US President Richard Nixon announced that he would visit China the following year. His National Security Advisor, Henry Kissinger, visited Beijing between 9–11 July (less than a week after Whitlam's visit of 4–6 July), and, unknown to Whitlam, some of Kissinger's staff had been in Beijing preparing for Kissinger's visit at the same time as the Labor delegation. According to Whitlam biographer Jenny Hocking, the incident transformed Whitlam into an international statesman, while McMahon was seen as reacting defensively to Whitlam's foreign policy ventures. Other errors by McMahon, such as a confused ad-lib speech while visiting Washington, and a statement to Indonesia's President Suharto that Australia was a "west European nation", also damaged the government.