Fix typeof checks.