Small change to the region_convert mex function.