fix logger initialization