Problem with double row fixed in table dynamic / Problema con doble fila fija en tabla dinámica

Problem with double row fixed in table dynamic / Problema con doble fila fija en tabla dinámica

Hello friends. I continue developing this beautiful dynamic table, thanks to Sμßhrånil∂ and other partners could progress:

The problem now is the double row arose in fixed columns.

  1. <thead>
              <tr>
                    <th rowspan="2" scope="col">AÑO</th>

                           <th colspan="2" scope="col">DATES</th>  
       
                    <th rowspan="2" scope="col">AÑO</th> 
        
                          <th colspan="4" scope="col">Expansión de ventas</th>  
       
                    <th rowspan="2" scope="col">AÑO</th>
                    <th rowspan="2" scope="col">AÑO</th>
              </tr>
              <tr>
                    <th scope="col">1</th>
                    <th scope="col">2</th> 
            
                    <th scope="col">Producto A</th>
                    <th scope="col">Producto B</th>      
                    <th scope="col" style="padding:0 50px !important;">Producto C</th>
                    <th scope="col">Producto D</th>   
              </tr>
    </thead>
He should run correctly but it does not:

Idea:


Any idea, please?