Correction to refresh the log view after clearing the log