Composite normal maps and masking


I am trying to get the masking to work when using a normal map and composite mode. The mask map does not seem to work with the normal map as it does with say diffuse color or any other map slots. With a totally black mask , it does not mask the original normal map at all. What gives? Is this a bug or what? I’ve tried everything. I am using max 2022.