Fixed logger bug.