Fixed logger bug