Fix bad typeof