Fix bug in regions parsing