Fixing a log issue