The number of products displayed on the page clears all selected product filters – woocommerce

I have a problem on the Product archive, when I filter products and change the number of displayed products per page, all the set filters are reset.

I’ve noticed that both the filter and the number of products on the page also enter their attributes in the URL, and that’s probably the problem. Does anyone have any solution for this?

enter image description here

Filtered products: http://xxx.xxx/product-category/spirits/?ixwpst[pa_brand[]=25&ixwpst[pa_brand[]=28&title=1&excerpt=1&content=1&categories=1&attributes=1&tags=1&sku=1&ixwpsf[pa_brand][show]=all&ixwpsf[taxonomy][pa_brand][multiple]=1&ixwpsf[taxonomy][pa_brand][filter]=0&ixwpsf[taxonomy][pa_region][show]=all&ixwpsf[taxonomy][pa_region][multiple]=1&ixwpsf[taxonomy][pa_region][filter]=0&ixwpsf[taxonomy][pa_detail-type-1][show]=all&ixwpsf[taxonomy][pa_detail-type-1][multiple]=1&ixwpsf[taxonomy][pa_detail-type-1][filter]=0&ixwpsf[taxonomy][pa_detail-type-2][show]=all&ixwpsf[taxonomy][pa_detail-type-2][multiple]=1&ixwpsf[taxonomy][pa_detail-type-2][filter]=0

Displaying number of products on page: http://xxx.xx/product-category/spirits/?Products-per-page=48