Fix a lot of small errors.