Fix region autodiscovery

Signed-off-by: Vlad <vg@vladgh.com>