Fix logger initialization