The prime minister sought to avoid issues with China and South Korea.