Jormungandr: fix potential bug in get regions