Fix offset error in region