Correcting logger bug