Fix rule selection in transform substructure