Fix PR15309

- Fix the typo on type checking