- fix some type mismatch which causes error in build time