fix type error building 0.9