fix logger