Logging file fix