fix some typos/bugs