Possible fix for deleting old logs