Removes some errors 

Removes error:

TypeError: object is not a function