fix typo in function name

Fixes my earlier issue