fix up some errors.