fix a typo calling a function