Fixed call to invalid method from Model class