Corrects some errors.