Added this line of code to handle the 'master' switch. When no subfilters are applied to an attribute, it's master switch should be off!