Fix logger exception