fix up errors.