They formerly had the desire to attain perfection, but when they attained perfection the corresponding desire faded away.

The Venerable Ānanda explains to the Brahmin Uṇṇābha how the right kind of desire leads to the end of desire.