fix type error