TypeError: Constructor is false