fix logger bugs