Catch invalid region error early