Fix a crash with village types