bad typeof check