If you go to the product page and filter by size M, it shows you, for example, products that only have size L in stock but are out of stock in size M.
The way it should work is that if I filter by size M, it only shows me products that you have in stock in size M.