fix logger bug