Fix logger error