Nikkei's early gains unravel as yen rebounds