How could one avoid the icons in the favorite window disappearing again and again?

How could one avoid the icons in the favorite window disappearing again and again?