logger bug fix