[smart] Fix matches method