fix logger variable