Fix lots of errors.