fix broken logging