Fix matchData bug that skips matching type if scheme matches.