Replaced uses of remove_children() with clear().