fix logger error