fix Logger::append_headers