fixed issue on undefined method getRegion