correct some type error