Fix calling invalid function