Fix error while taking advantage of prototype.