Updated clearing of divs