fix type error: data.regin as data.region