fix logger issue