Fixed the div clearing