Fixed a bug with custom village materials