__generate_headers_() small fix