correct some logging