Fixed typo in function def. Close #2