inregion detection fix