fix type error in migration