check for invalid regions
Merge pull request #2107 from ralfharing/develop

check for invalid regions