fix some type mistake