fix up errors