bug fix with getMatch