Fix bug in function names