Fixes :extend not getting applied to nested elements.