Fixed typo of referencing but not calling function