Fixed bug where multiple logs were not being cleared.