Fix the build warnings and typo error

No match.