Correcting check for selectors in nested rules