fixed getVillage function