Fix bad syntax and typos.