logging fixed.