Fix error when calling function