Fix number checks.