fix some type error