Make clearing not destroy the layout.