fix some introduced errors