prevent $.portal and $.background from deleting their contents on redraw