Fix logger replacement.