Calc: Any workaround for autofilter merged save to HTML layout fail?

The attached looks fine as .ODS in Calc:

image

but saved as HTML is somewhat wrecked:

aaa and bbb rowspan=n has failed to take account of the autofilter. If only one know what value to correct it to:

Calc autofilter merged to HTML errors.ods (14.1 KB)