fix type error.