fix type error for build