How to repeat smart component to with several reference matte?

Hello,
Just wondering how to get a smart component to matte to several reference matte?
It's probably not possible, but maybe there is a trick to make it working.
It has been wotking on some case with incremental reference matte name, but it is not robust, sometime it pick up the next iteration matte reference, sometime not, impossible to find out why!
Thanks