Fixed some log refreshing issues.