fixed a typo in a function call