Fix "undefined variable: $matches"