Fixed bug in regioner.py