Fixing the logger