Some typos in functions