Fixed with adding the prototype.