Japan's former world No. 1 had to fight back in both sets against the Australian.