fix up some errors