In 806, Emperor Kanmu passed away, and when Imperial Prince Ate became the next Emperor (Emperor Heizei), Kusuko was again called back to serve at the Imperial Court and appointed to Naishi no Tsukasa (Palace Attendants Office).
806年、桓武天皇が崩御して安殿親王が即位する（平城天皇）と、薬子は再び召され内侍司となる。