Fixing a bug on regions#index when we have nil regions