Fix bugs caused by some typos