I have a problem.

I have items in many colors and sizes. But I can't prevent a customer from adding a item that is out of stock if one attribute as stock remaining.