Fixed a bug where a mix and match and non mix and match rule could cause not all rules to be applied