minor logger bug fix