Fix handling of outside regions in example.